Kanzi 4.0.0-beta2
kanzi::gfx::DrawIndirectCommand Struct Reference

Issues an indirect draw command in a render pipeline. More...

#include <kanzi/gfx/commands.hpp>

Inheritance diagram for kanzi::gfx::DrawIndirectCommand:
[legend]

Public Member Functions

 DrawIndirectCommand ()
 Constructor.
 
- Public Member Functions inherited from kanzi::gfx::BaseCommand
uint32_t getSize () const
 Gets the command size in bytes.
 
uint8_t getTag () const
 Gets the command tag.
 
CommandType getType () const
 Gets the command type.
 
void setTag (uint8_t tag)
 Sets the command tag.
 

Public Attributes

BufferHandleGuard buffer
 Parameter buffer.
 
uint32_t drawCount
 Draw count.
 
uint32_t offset
 The parameter buffer offset in bytes.
 
uint32_t stride
 Buffer stride in bytes between draws.
 

Additional Inherited Members

- Protected Member Functions inherited from kanzi::gfx::BaseCommand
 BaseCommand (CommandType t, uint32_t s)
 Constructor.
 
 BaseCommand (const BaseCommand &other)
 Copy Constructor.
 
BaseCommandoperator= (const BaseCommand &other)
 Assignment operator.
 

Detailed Description

Issues an indirect draw command in a render pipeline.

Parameter buffer is expected to contain drawCount instances of structure of type:

Since
Kanzi 4.0.0

Constructor & Destructor Documentation

◆ DrawIndirectCommand()

kanzi::gfx::DrawIndirectCommand::DrawIndirectCommand ( )
inline

Constructor.

Member Data Documentation

◆ buffer

BufferHandleGuard kanzi::gfx::DrawIndirectCommand::buffer

Parameter buffer.

◆ offset

uint32_t kanzi::gfx::DrawIndirectCommand::offset

The parameter buffer offset in bytes.

◆ drawCount

uint32_t kanzi::gfx::DrawIndirectCommand::drawCount

Draw count.

◆ stride

uint32_t kanzi::gfx::DrawIndirectCommand::stride

Buffer stride in bytes between draws.


The documentation for this struct was generated from the following file: